
(function Layout (window) {
	
	Layout.CENTER = "center";
	Layout.TOP = "top";
	Layout.BOTTOM = "bottom";
	Layout.LEFT = "left";
	Layout.RIGHT = "right";
	
	
	var fullscreen = false;
	var sections = []
	var section;
	
	Layout.setSection = function (valueOfSection){
		
		section = valueOfSection;
		sections.push(section);
		
	}
		
	Layout.getCurrentSection = function () {
		
		return section;
		
	}
		
    Layout.getWebsiteSections = function () {
		
		if (sections.length>1) {
			
			return sections;
			
		} else {
			
			return false;
			
		}
		
	}
	
	Layout.applyFX = function () {
		
			TweenMax.set("#entrance", {perspective:500});
		
	}
	
	Layout.align = function (width, height, mode, objectID) {

		switch (mode) {
			case Layout.CENTER:
				$("#"+objectID).css(	"left", (width * .5 ) - ($('#'+objectID).width() * .5));
				$("#"+objectID).css(	"top", (height * .5 ) - ($('#'+objectID).height() * .5));
			break;
			
		}
		
	}
	
	Layout.position = function () {
		
			Layout.align(window.innerWidth, window.innerHeight,Layout.CENTER,"entrance");
		
	}

	

	window.Layout = Layout;

})(window);// JavaScript Document